package jprint.base.label;

/**
 * @author zw-zheng
 * Created on 2020-11-29
 */
public class LabelItem {

    private String id;
    private String type;
    private String value;
    private int left;
    private int top;
    private int width;
    private int height;
    private String fontName;
    private Integer fontSize;
    private boolean fontBold;
    private String imageSrc;

    public String getId() {
        return id;
    }

    public LabelItem setId(String id) {
        this.id = id;
        this.type = id.substring(0, id.indexOf('-'));
        return this;
    }

    public String getType() {
        return type;
    }

    public LabelItem setType(String type) {
        this.type = type;
        return this;
    }

    public String getValue() {
        return value;
    }

    public LabelItem setValue(String value) {
        this.value = value;
        return this;
    }

    public int getLeft() {
        return left;
    }

    public LabelItem setLeft(int left) {
        this.left = left;
        return this;
    }

    public int getTop() {
        return top;
    }

    public LabelItem setTop(int top) {
        this.top = top;
        return this;
    }

    public int getWidth() {
        return width;
    }

    public LabelItem setWidth(int width) {
        this.width = width;
        return this;
    }

    public int getHeight() {
        return height;
    }

    public LabelItem setHeight(int height) {
        this.height = height;
        return this;
    }

    public String getFontName() {
        return fontName;
    }

    public LabelItem setFontName(String fontName) {
        this.fontName = fontName;
        return this;
    }

    public Integer getFontSize() {
        return fontSize;
    }

    public LabelItem setFontSize(Integer fontSize) {
        this.fontSize = fontSize;
        return this;
    }

    public boolean isFontBold() {
        return fontBold;
    }

    public LabelItem setFontBold(boolean fontBold) {
        this.fontBold = fontBold;
        return this;
    }

    public String getImageSrc() {
        return imageSrc;
    }

    public LabelItem setImageSrc(String imageSrc) {
        this.imageSrc = imageSrc;
        return this;
    }
}
